package com.yami.shop.rights.common.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yami.shop.common.util.PageParam;
import com.yami.shop.rights.common.dto.ExchangeRightsDto;
import com.yami.shop.rights.common.model.ExchangeRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExchangeRecordMapper extends BaseMapper<ExchangeRecord> {

    IPage<ExchangeRightsDto> pageList(@Param("page") PageParam<ExchangeRightsDto> page,@Param("vo")  ExchangeRightsDto vo);

    List<ExchangeRightsDto> listUnDeliveryExchangeExcel(@Param("dto") ExchangeRightsDto exchangeRightsDto);

    ExchangeRightsDto getExchangeRecordByOrderNumber(@Param("orderNumber") String orderNumber,@Param("shopId") Long shopId );
}
